package org.example;

public class Army {
    private String name;
    private int strength;

    public Army() {
    }

    public Army(String name,int strength) {
        this.name = name;
        this.strength=strength;
    }

    public String getName() {
        return name;
    }


    public int getStrength() {
        return strength;
    }

    public void setStrength(int strength) {
        this.strength = strength;
    }public void displayInfo(){
        System.out.println("当前的力量值："+getStrength());

    }protected void mission(){
        System.out.println("执行军事任务");
    }

}
